package com.foreknow.springboot.mapper;

import com.foreknow.springboot.po.Food;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FoodMapper {
    /**
     * 根据商家编号查询所属食品信息
     * @param businessId
     * @return
     */
    @Select("select * from food where businessId = #{businessId}")
    public List<Food> listFoodByBusinessId(Integer businessId);

}
